<?php   
    require_once '../controls/dbhelper.php';
    require_once '../controls/user_controller.php';
    $login_user = new user_controller();
    if(isset($_GET['action'])) {
        if ($_GET['action']== 'logout'){
            header("Location:../index.php?action=logout");}
        elseif($_GET['action'] == 'cancel') header("Location:../index.php?action=cancel");
        elseif ($_GET['action'] == 'registration')  header("Location:../index.php?action=registration");
        else header("Location:../index.php?action=login");
    }
?>